import fly from "../utils/request.js";
export const codes = (mobile) => {
    return fly.get(`/sms/codes/${mobile}`)
}
export const login = (data) =>{
    return fly.post("/authorizations",data)
}
export const getUser = () =>{
    return fly.get("/user")
}
export const getUserInfo = (data) =>{
    return fly.get("/user/profile",data)
}
export const editNickName = (data) =>{
    return fly.patch('/user/profile',data)
}
export const userPhoto = (data) => {
    return fly.get(`/user/photo`,data)
}